<?php
/**
 * Created by PhpStorm.
 * User: luoshuqi
 * Date: 19-2-14
 * Time: 下午5:17
 */

namespace App\Utils;


class ErrorCode
{
    const OK = ['ok', 0];
    const GENERAL_ERROR = ['出错了', 1];
    const INVALID_PARAMETER = ['参数错误', 4000];
    const LOGIN_REQUIRED = ['需要登录', 4001];
    const INSUFFICIENT_PRIVILEGES = ['没有权限', 4003];
    const NOT_FOUND = ['数据不存在', 4004];
    const SERVER_ERROR = ['系统错误', 5000];
}